package com.bwie.controller;

import com.bwie.mapper.UserMapper;
import com.bwie.service.UserService;
import com.bwie.utils.R;
import com.bwie.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title:
 * @BelongProjecet zk2
 * @BelongPackage com.bwie.controller
 * @Description:
 * @Copyright 研发一部
 * @Author: Mr.yan
 * @Date: 2024/6/3 9:08
 * @Version V1.0
 */
@RestController
@RequestMapping(value = "/user/user")
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping("/userLogin")
    public R userLogin(
            @RequestBody LoginVo loginVo
            ){
        return userService.userLogin(loginVo);
    }

    @PostMapping("/selectUser")
    public R selectUser(
            @RequestBody Integer id
    ){
        return userService.selectUser(id);
    }


}
